var m : number = 8;
var x : number = 9;
var j : number = 1;
console.log (Math.min (m, j + Number (tz <= x)));
